package p.ithorns.example.statemachine;

import org.springframework.boot.CommandLineRunner;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.statemachine.StateMachine;

/**
 * StateMachineApp
 * TODO ithorns
 *
 * @author Ht.L
 * @date 2023-10-01 18:33
 * @since 1.0.0
 */
@SpringBootApplication
public class StateMachineApp implements CommandLineRunner {

    // @Resource
    StateMachine<States, Events> machine;


    @Override
    public void run(String... args) throws Exception {
//        machine.start();
//        machine.sendEvent(Events.ONLINE);
//        machine.sendEvent(Events.PUBLISH);
//        machine.sendEvent(Events.ROLLBACK);
    }
}